package part1.api.io.mytest;

public class Test {
    public static void main(String[] args) {
        Apple a = new Apple();
        a.clean();
        System.out.println(a.b);

        //构造代码块 无参构造 局部代码块 洗 吃 0
    }
}
class Apple{
    int b;
    Apple(){
        System.out.println("无参构造");
    }
    {
        System.out.println("构造代码块");
    }
    public void clean(){
        {
            int b = 10;
            System.out.println("局部代码块");
        }
        System.out.println("洗");
        eat();

    }
    void eat(){
        System.out.println("吃");
    }
}
